from flask  import Flask
from flask_mongoengine  import MongoEngine
from app import views,models


app = Flask(__name__)
app.config.from_object("config")

# 导入MongoEngine,并且实例化.
db = MongoEngine(app)

